import { AuthCode } from '@/modules/auth';
const cyRoutes = [
  {
    path: '/cy',
    name: 'Cy',
    component: 'Layout',
    meta: { title: '创意CRM' },
    redirect: { name: 'CyDataStatistics' },
    children: [
      {
        path: 'dataStatistics',
        name: 'CyDataStatistics',
        meta: { authCode: AuthCode.CY_DATA_STATISTICS, title: '数据统计', icon: 'icon-statistics' },
        component: () => import('@/views/crm-cy/data-statistics/index.vue')
      },
      {
        path: 'userList',
        name: 'CyUser',
        component: () => import('@/views/crm-cy/user-list/index.vue'),
        meta: { title: '用户管理', authCode: AuthCode.CY_USER_LIST, hide: false, icon: 'icon-user-manage' }
      },
      {
        path: 'orderList',
        name: 'CyOrder',
        component: () => import('@/views/crm-cy/order-list/index.vue'),
        meta: { title: '订单管理', authCode: AuthCode.CY_ORDER_LIST, hide: false, icon: 'icon-order-manage' }
      }
    ]
  }
];

export default cyRoutes;
